<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		window.jQuery || document.write('<script src="./js/vendor/jquery.min.js"><\/script>')
	</script>
	<script type="text/javascript">
	var href = window.location.href;
	var paramsArr = href.split("?")[1].split("&");
	for(var i = 0; i < paramsArr.length; i++) {
		var paramArr = paramsArr[i].split("=");
		if("code" == paramArr[0]) {
			var code = paramArr[1];
		}
		if("bid" == paramArr[0]) {
			var bid = paramArr[1];
		}
		if("compoundsId" == paramArr[0]) {
			var compoundsId = paramArr[1];
		}
	}
	$.ajax({
		async : true,
		url : "http://120.25.120.99:8080/YGJ/employeeAction!employeeLogin.action?async=y",
		dataType : "json",
		type : "post",
		data : {
			"bid" : bid,
			"code" : code
		},
		success : function(data){
			if(data != undefined && data.code != undefined && data.code == 1){
				window.location = "http://120.25.120.99:8080/YGJ/page/dosubp/index.html?bid=" + bid + "&code=" + code + "&compoundsId=" + compoundsId + "&subUserPhone=" + (data.result)[0].phone + "&employeeId=" + (data.result)[0].id;
			}
		}
	});
	</script>
</body>
</html>